package com.burgeon.backend.SHOPBACKEND.mappers;


import com.burgeon.backend.SHOPBACKEND.entity.Classify;
import com.burgeon.backend.SHOPBACKEND.entity.ClassifyItem;
import org.apache.ibatis.annotations.Param;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.List;

public interface GoodsClassifyItemMapper {

    ClassifyItem getClassItemById(String id);
   // List<ClassifyItem> getClaItemById(String id);
    /**
     * 根据大分类id查询小分类
     * @param classifyId
     * @return
     */
    List<ClassifyItem> getClaItemByCid(String classifyId);
    List<Classify> getClassify(String account);

    //根据小分类的id查询产品数
    Integer getGoodsCount(String classifyItem,String token);

    //根据大分类的产品数
    Integer getGoodsCountByCid(String classify,String token);

    //添加小分类
    Integer inClassifyItem(ClassifyItem classifyItem);

    //根据id删除小分类
    Integer deClassifyItem(Integer id);
    //根据大分类的id删除
    Integer deClassifyItemByCid(String cid);
    //根据小分类的id修改
    Integer upClassifyItemById(ClassifyItem classifyItem);


}
